fixed bug with loading sequence