Fix GET request code