Fixed bug with skip variable