Removed duplicate and corrected variable name