fixing bug introduced in previous commit, method should compare current states instead of start states