fixed method inside utils not consistent with pytmx API