Fix for crashing when no subject selected