Fix for write/log action