Fixed errors in demo file