fixed extra space and incorrect object call in POST