fixed bug in params check, casting to string