fix bug in sample jsx