offset bram bug fix