minor err fixes