Fixed error where same promise where returned every time, preventing success handler to be called after a reject