Fix bug in 40d createplant command