Fixed error for exists