fix error on watching compilation process