fix req.where initialization position, was checked if function before init