bugs fixed at error messaging