fix loader logic