a stupid nasty bug fixed