bugfix: when the value was null, :percent was raising exception