Fixed the error dialouge box