fixed bug which was breaking reload