fix for zendframework/zf2#3458

fix for zendframework/zf2#3458