fixing reduction bug in profile controller