Fix sprite parameters -> elements conversion