fixed error associated with apikey