fix a minor bug in the profilecontroller