handle invalid profile