hopefully fixed a bug with crash on first fragment