fixed invalid save button