Fixing AttributeError: can't set attribute
 due to readonly value