Fixing bug in Writable class.