fixed stupid bug...
nuances of code annoy me some days...