BUG FIXED: error while doing executing the discover() method