Fix the bug in Gallery Dashboard