Fixed bug (variable redefined)