fixed a strong typo which causes an exception