Renamed snippet and fixed error