Fixed error , forgot to check a!=b