Minor fixes in error syntax