Additional fixes based on comment.

Signed-off-by: crynobone <crynobone@gmail.com>