fixed bug in dealway.py