corrected error skipping loging