optional type setting fix