Fix for double order creation

Fixes #52