Fixes error upon creating new order