partly fixed a bug causing FastLM to crush