model and sprite deletion fixed