bugs fixed in Runtime class