bug is fixed of unused variable