Fixed typo and made import conditional to prevent unused imports warning.