HTTP 500 error when adding duplicate tree name but different capitalisation