Crash fixed

Crash report: http://crash.pocketmine.net/view/24433