Fix bug with loading texture during scene switch