fix microsoft api