Fix

Fixed erroneous function definition