fixed missing error messege