fixed a bug in the compose post api