fixed bug in reset firebase fucntionality