Fix incorrect datatype/return
Improve mq-core#4