fixed interpolation bug