fixed issues for AgPal App