Correcting use of stat conditional