fixed memory leak (yes i managed to leak memory in java fk me)