Fix update query with $ error