fixed validation
fixed validation in dist