Fixed the bug of the two pragmas calling the same function