fix some issues in deck editor