Fixed unused variable warning