Fix bug in name of function