fixed non-initialized variable error