fixed a bad reference to a funtion