Small bugfix (frontend selected_id variable)