fixed problem with hideerror, thanks Ricardo