smearing bugs fixed