Fix context issue in Function#prepareProperty