Some paramter checking errors