Fixes bug in profile settings