Fixed datatype errors in the entity editor