fix to exit