Fix :main windows is always ont top.
Fix : in case that framecount can not be obtain WookingForm will throw errort.