fix handling of WRITE_TAG_CLOUD

Signed-off-by: Chris Warrick <kwpolska@gmail.com>