Fixed weird jquery bug