Must fix bug when it returns FAILURE while everything is ok