fix some bugs [EntitiesToCommandBlocks]