fix case which returns 1