Fixed issue with hide() notn reverting back to the correct display type.