jquery bug fixing