fix 1503
Merge pull request #1545 from sancar/fix-classLoader/issue1503/maintenance-3.x

fixes #1503