fixed problem with interpreting rewrite array