entity -1 fix