handle method not allow exception