Fixes class storing errors