fix bug in quad creation function