Fix import order which caused the wrong from_str to be in scope