fix className when insert to database