fixed a bug with last commit regarding compose dialog