nasty bug fixed