fixed prepare error