Fix crash in eclipse