Fixed issue whit watch

now script works with watch