fixed issue with app-default rewriting