error handling div bug fixed