Fixing re bug