small fix to template
locked the WritableValue class