fix ctrl-a ctrl-x + fix for determineMaskset