fix for jquery error