fix bug wrong spelling variable