bugfix: fixed bug in create method of controller