fixed problem where loading texted displayed after everything loaded.