Fix casted system class dispatch