fixing incorrectly written variable