fixes the error alert  when updating navbar buttons on one side.