fix issue on cart controller

Signed-off-by: Bruno Gaspar <brunofgaspar1@gmail.com>