ensure check for var value fixes #230