Fix segfault
Update .pro file