Fixed stupid math