small fix for 'fix_p_spaces'