local adapter bug fixed