bug fix in chrome; was ok in firefox