fixed bug with onlockchange event and w8 client