fixing issue with promote error detection