Fix return in check