fixed bug in beats.api