Fix script for checking