Fixed sprite debug issue