Fixing common errors when drawing a profile.