pushed quick fix for bad rewrite rect