Removed unnecessary rewrite call