fix watch in angular not work well issue when variable from undefined to true