fix for block not changing correctly after being set