Fixed massive error on getEntity