Fixed bug causing if/else to be swapped :(