fixed undefined modal value