fixed a smaller bug, which lead to a notice.