fixed surface prepare error