fix erroneous return