fixed bug with watch script