Fixed a issue where preload flag was not detected correctly.