sprite error fix