fixed bug with firebase recorder