Fix refactored code on linux.