Fixed refresh bug when an AOT namespace is included.