fix reject permission (ref: #248)