debugged error message in gui