fixed bValue error during subsititution