Fixed: Two variables had been switched around