nasty bug fixed!