Fixed mqtt api problem