bugfix for live reload