fix of a fix for checking input data