fixed bug with live-reload