Fixed little bug in subscribe API