Fixed app bugs.