Fixed unnecessary use of volatile