bug fixed

now no obvious bugs exists,but there are bugs which is not that
apparent.