The sweetened condensed milk layer needs time to cool and set otherwise it will simply ooze out when you cut the bars. You will also need to make sure you use sweetened condensed milk and not any other type of milk.