fixed FFTW bug in wscript
web-ui: improve max/min level validation