Removed typing error and modified warning