fixes exit bug on update for dev
Modern C++