Fixed codesnippet