fix pre-loading