fix for zendframework/zf2#3439