finally fixed the bug !!