The gulp script acts unpredictable