Fixed error in sketch