Fixed warning unused variable