fixed exception throw on getInstance