slim middleware redirect fix
version 1.2.0