fixing bug in status-fetching mechanism