Fixing error that occurred when expandable type was changed