Fixed Error (non fatal) with slider: reference before assignment