J2K: fixed bug