[fix] fix compilation for mac os
[fix] key and interval error