fixed errors for non-loaded texture