fixed a bug with denying applications