Fixed possibly serious error