fixed issue where golden bit and dirty bit oculdnt be turned on