tony95, please attach the workspace you are using for reproducing this behavior and export of your study with dependent functions (Power Language editor->File->Export->export with dependent functions).