fixed issue which caused custom stubs dir to crash stub-stub