Fixes setting bug