Fixed bug in the place function