Fixed badly named variables