Fixed wrong function parameter, refs #27