Fixed bug caused by copy-paste.