Fix setting entity levels