fixed gapi loading