Fixed bug when creating scenario (nullpointer from int parsing).