App error fixes