Fix for jQuery error