End as error

also table drop fix