hotfix/4508

hotfix for the issues https://github.com/zendframework/zf2/issues/4508