Fix uncaught exception error due to wrong selector being applied.