three bugs fixed
typo