without the (ugly) global curarea being set. Fixed the crash in his sample by nicely passing on 'current area' as argument.