fixing a small var name bug