Attempts to fix sprite bug