fixing a stupid coding error