Fixed ender and client crash