Fix request function