Fix readonly not working