Fixed appform bug