fix -Wno-return errors