Fix for https://forums.alliedmods.net/showthread.php?t=226018