Fixed readonly bug