Saving schedule rule bug fixed. Closed #576