Fix bug in livereloader