fix app crashing at first start

#78