Fixed another UnsupportedOperationException with a direct buffer