fixed a critical interpolation bug