Statements were in the wrong order