Minor bug fixed in check