Fix deprecation warning: read -> read!