bit of a hack to deal with sprite cleanup