problem with unset fix

This solves bug i describe in issue #13.