Fixed bug in create bucket