bug in variable