removed dupliate error bug