Fixed sprite loading from xml.