Move setAutoRead after setting the attribute and removing read() call