fix ServerAPI bug