Help! I can't find the error in my code!

Yup, switching to version 13 did it. Now it is working correctly.