frame clearing problem fixed. badly, but fixed