fixed a minor variable usage error