fix crash due to copy&paste bug