Fixed application close on update