Fix for write methods.