Fix some flags in init file.

Fixed the checks for the flags in boundaries in init.c