fix apikey bug