fixed a bug in Consistent Salaries