Fixed very strange compilation problem that was not detected by idea