Fix method not allowed issue