Fix UnsupportedOperationException on startup
Thanks @kosakriszi for pointing this out