Fixed bug, invalid and valid were both true.