Try removing constant before materializing it.