Made program error handling was in correct