Fixes bug in profile.