fix bug on secure.slim