dev/ref#198 fixed undefined var