Fix rename sequence failure(issue #336)

Fix for issue #336 and updated spec.