Fixed bug in --create