Fixed java assert usage