write bugfix