install a piece of furring strips to the intersection of the ceiling and walls. screw this to the wall with pre drilled holes into the top plate. then screw or nail the molding to this furring strip. will give you something closer to the crown to nail to. On crown you have a void space in the corners and this will fill that up and serve as a nailing board.