Remove duplicated $_POST['type']