Fix check for writable