Fix editing spinBox problem