Fix formatting
Fix update command if an exception occurs