fixed two errors messages