Fix request code