Fix bug when creating/editing new scales