Fixing adapter refresh bug