fix cover undefined