Fixed serious bug on firstActivity

Let me know if the bug is still here