GUi ghost fix.
Script cleanups.