Fix return value. Should be logic one or zero.