Fixes bug in programmas