This line and the previous one need to be swapped I think.