Fixes game breaking bug.