fixed crashes during forming