small fix for write behavior