fix for allow short and empty key