FIX: Bug with function layout

This caused the badges page to not execute correctly