Fix error : "Function passed by reference"