Fix conditions of geting results