fixed a bug if the profs info was not set