Fixed enderpearl flag handling