Fixed while grammar
Fixed call sub check