Fix Crash

The application no longer exits unexpectedly, still issues to resolve
though