fix fill toggle bug. This fix probably isn't the best way to do it but until how javascript objects work, this works