Messed up order of operations!

Seems to be working okay.