fix #3 Undefined variable