Fix segfault on current
Fix segfault on current

Reported by:	Nikolai Lifanov <lifanov@mail.lifanov.com>

skoef/pkg,Open343/pkg,Open343/pkg,junovitch/pkg,en90/pkg,en90/pkg,junovitch/pkg,khorben/pkg,khorben/pkg,khorben/pkg,skoef/pkg