Small bug fixes for sandbox server

Older php version cannot use method return in write context. Also, typo
in collection options fixed.