fixed bug in jquery