Fixed issue in code-getting from Firebase