Fixed compilation errors. (wth?)