Fixed defrecord outside of module issue