fix bug in live scope