Fix for memory corruption and start of LJ interpolation