Fixed bug in 'set profile' command