triggers: fixed bug in format for read()