fixed a small typo that causes a crash