fixed a bug preventing refresh from working