Watch max attribute

It's common situation, that max value changes in runtime. So I've added watch to it.