Fixed bug in renewal