Move cbind inside else block