added fix for refresh