fix interpolation bug