Fixes jQuery issue with thumbnail action not binding properly