Fixed quick math bug