*Fix for: saving quests crashes.

Fixes tickets: 144 and 137